#!/usr/bin/env node

const readline = require('readline/promises');

const rl = readline.createInterface({ input: process.stdin, output: process.stdout })

const msg = ['name', 'email', 'qq', 'mobile'];

const me = {};


async function main() {
  for (let num = 0; num < msg.length; num++) {
    const answer = await rl.question(msg[num] + ':');
    me[msg[num]] = answer;
  }

  rl.close();
  console.log(me);
}

main();



// console.log(msg[num] + ':');


// process.stdin.on('data', (data) => {
//   if (num < msg.length - 1) {
//     me[msg[num++]] = data.toString();
//     console.log(msg[num] + ':');
//   }
// })

// process.stdin.on('end', () => {

//   console.log(me);

//   process.exit();
// })



